<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台主界面</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/admin.css' type="text/css" />
<script src="<?php echo $static_url; ?>common/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="<?php echo $static_url; ?>common/js/common.js" type="text/javascript"></script>

<script src="<?php echo $static_url; ?>common/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/daily_record.css' type="text/css" />
</head>
<body class="body_background">
	<div>
		<?php echo $header_nav; ?>
		<div class="common_container clearfix">
			<div class="crumbs">
				<span class="catalogue">会员</span>
				<a href="/www/admin/vip/vip_lists_buy.php">纯买家会员</a> |
				<a href="/www/admin/vip/vip_lists_trading.php">缴费交易会员</a> |
				<a href="/www/admin/vip/vip_lists_upgrade.php">会员升级</a> |
				<a href="/www/admin/vip/vip_lists_buy_before.php">纯买家会员(预审)</a> |
				<a href="/www/admin/vip/vip_lists_trading_before.php">缴费交易会员(预审)</a> |
				<a href="/www/admin/vip/vip_search.php">会员搜索</a>
			</div>
			<div class="daily_record_menu" id="side_container">
				<div class="closeSidebar"><i title="点击隐藏左菜单" class="icon_close"></i></div>
				<ul class="record_menu">
					<li style="font-size:14px;">会员</li>
					<li><a href="/www/admin/vip/vip_lists_buy.php"> └ 纯买家会员</a></li>
					<li><a href="/www/admin/vip/vip_lists_trading.php"> └ 缴费交易会员</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_trading.php"> └ 总列表</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_trading.php?status_type=1"> └ 待审核</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_trading.php?status_type=2"> └ 已认证</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_trading.php?status_type=3"> └ 已拒绝</a></li>
					<li><a href="/www/admin/vip/vip_lists_upgrade.php"> └ 会员升级</a></li>
					<li><a href="/www/admin/vip/vip_lists_buy_before.php"> └ 纯买家会员(预审)</a></li>
					<li><a href="/www/admin/vip/vip_lists_trading_before.php"> └ 缴费交易会员(预审)</a></li>
					<li><a href="/www/admin/vip/vip_search.php"> └ 会员搜索</a></li>
				</ul>
			</div>
			<div class="sidebar_container_hidden" style="margin-top:10px;margin-right:5px;" >
				<div class="openSidebar"><i title="点击显示左菜单" class="icon_open"></i></div>
			</div>
			<div class="daily_record_main" id="main_container">
				<table class="record_tips"><tr><td>缴费交易会员&nbsp;&gt;&nbsp;<?php echo $this_address; ?></td></tr></table>
					<div class="vip_edit_container">
						<form id="form1" onsubmit="return checkdata();" encType="multipart/form-data" method="post" name="form1" action="/www/admin/vip/do/do_edit_trading.php">
							<table class="table_form" border="0" cellSpacing="0" width="750">
								<tbody>
									<tr>
										<td width="200">
											<input id="status" name="status" value="1" type="hidden">
											<input name="id" type="hidden" value="<?php echo $vip_rs['id']; ?>" />
											<input name="username" type="hidden" value="<?php echo h_d($vip_rs['username']); ?>" />
											<input name="status_type" type="hidden" value="<?php echo $status_type; ?>" />
											<span>ID:<font class="Need ">*</font></span>
										</td>
										<td><?php echo $vip_rs['id']; ?></td>
									</tr>
									<tr>
										<td width="200"><span>用户名:<font class="Need ">*</font></span></td>
										<td><?php echo h_d($vip_rs['username']); ?></td>
									</tr>
									<tr>
										<td width="200"><span>姓名:<font class="Need ">*</font></span></td>
										<td><input name="name" value="<?php echo h_d($vip_rs['name']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>性别:<font class="Need ">*</font></span> </td>
										<td>
											<select name="sex">
												<option value="1" <?php echo ($vip_rs['sex']==1) ? 'selected="selected"' : ''; ?> >男</option>
												<option value="2" <?php echo ($vip_rs['sex']==2) ? 'selected="selected"' : ''; ?> >女</option>
											</select>
										</td>
									</tr>
									<tr>
										<td width="200"><span>邮政编码:<font class="Need ">*</font></span> </td>
										<td><input name="postcode" maxLength="6" value="<?php echo h_d($vip_rs['postcode']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>通信地址:<font class="Need ">*</font></span> </td>
										<td>
											<textarea cols="36" rows="4" name="mailaddress"><?php echo h_d($vip_rs['mailaddress']); ?></textarea>
										</td>
									</tr>
									<tr>
										<td width="200">
											<span class="">身份证地址:</span>
										</td>
										<td>
											<textarea name="accountaddress" cols="36" rows="4"><?php echo h_d($vip_rs['accountaddress']); ?></textarea>
										</td>
									</tr>
									<tr >
										<td width="200">
											<span class="">职业:</span>
										</td>
										<td>
											<input name="vocational" type="text" value="<?php echo h_d($vip_rs['vocational']); ?>" />
										</td>
									</tr>
									<tr >
										<td width="200">
											<span class="">职务:</span>
										</td>
										<td><input name="position" type="text" value="<?php echo h_d($vip_rs['position']); ?>" /></td>
									</tr>
									<tr>
										<td width="200"><span>常用电话:</span></td>
										<td><input name="homephone" type="text" value="<?php echo h_d($vip_rs['homephone']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>微信号:</span></td>
										<td><input name="weixin" type="text" value="<?php echo h_d($vip_rs['weixin']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>QQ:</span></td>
										<td><input name="qq" type="text" value="<?php echo h_d($vip_rs['qq']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>电子邮件:</span></td>
										<td><input name="email" type="text" value="<?php echo h_d($vip_rs['email']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span class="">单位或宿舍固定电话:</span></td>
										<td><input name="telephone" type="text" value="<?php echo h_d($vip_rs['telephone']); ?>" /></td>
									</tr>
									<tr>
										<td width="200"><span class="">传真:</span></td>
										<td><input name="fax" type="text" value="<?php echo h_d($vip_rs['fax']); ?>" /></td>
									</tr>
									<tr>
										<td width="200"><span>手机:</span><font class="Need ">*</font></td>
										<td><input name="mobile" type="text" value="<?php echo h_d($vip_rs['mobile']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>身份证号码:<font class="Need ">*</font></span></td>
										<td><input name="cardnumber" type="text" value="<?php echo h_d($vip_rs['cardnumber']); ?>"></td>
									</tr>
									<tr>
										<td width="200"><span>常用银行帐号:<font class="Need ">*</font></span></td>
										<td>
											<span>
												<select name="bankaccounttype" style="float:left;margin-right:20px;">
													<option value="">请选择银行</option>
													<option value="1" <?php echo ($vip_rs['bankaccounttype']==1) ? 'selected="selected"' : ''; ?> >邮政</option>
													<option value="2" <?php echo ($vip_rs['bankaccounttype']==2) ? 'selected="selected"' : ''; ?> >农行</option>
													<option value="3" <?php echo ($vip_rs['bankaccounttype']==3) ? 'selected="selected"' : ''; ?> >工行</option>
													<option value="4" <?php echo ($vip_rs['bankaccounttype']==4) ? 'selected="selected"' : ''; ?> >建行</option>
													<option value="5" <?php echo ($vip_rs['bankaccounttype']==5) ? 'selected="selected"' : ''; ?> >交行</option>
													<option value="6" <?php echo ($vip_rs['bankaccounttype']==6) ? 'selected="selected"' : ''; ?> >招行</option>
													<option value="7" <?php echo ($vip_rs['bankaccounttype']==7) ? 'selected="selected"' : ''; ?> >中行</option>
													<option value="8" <?php echo ($vip_rs['bankaccounttype']==8) ? 'selected="selected"' : ''; ?> >浦发</option>
													<option value="9" <?php echo ($vip_rs['bankaccounttype']==9) ? 'selected="selected"' : ''; ?> >民生</option>
												</select>
												<input name="bankaccount" type="text" maxlength="30" value="<?php echo h_d($vip_rs['bankaccount']); ?>" style="float:left;"/>
											</span>
										</td>
									</tr>
									<tr>
										<td width="200"><span>其它银行帐号:</span></td>
										<td><span><label><textarea cols="36" rows="4" name="reservebankaccount"><?php echo h_d($vip_rs['reservebankaccount']); ?></textarea> </label></span></td>
									</tr>
									<tr>
										<td width="200"><span>备注说明:</span></td>
										<td><span><label><textarea cols="36" rows="8" name="reservenote"><?php echo h_d($vip_rs['reservenote']); ?></textarea></label></span></td>
									</tr>
									<tr>
										<td width="200"><span>身份证正面图片:<font class="Need ">*</font></span></td>
										<td>
											<a href="<?php echo $vip_rs['sfz_zm']; ?>" target="_blank" title="点击查看原图">
												<img src="<?php echo $vip_rs['sfz_zm']; ?>" width="250px" />
											</a>
											<input id="sfz_zm" name="attach[sfz_zm]" type="file"> 
										</td>
									</tr>
									<tr>
										<td width="200"><span>身份证反面图片:<font class="Need ">*</font></span></td>
										<td>
											<a href="<?php echo $vip_rs['sfz_fm']; ?>" target="_blank" title="点击查看原图">
												<img src="<?php echo $vip_rs['sfz_fm']; ?>" width="250px" />
											</a>
											<input id="sfz_fm" name="attach[sfz_fm]" type="file">
										</td>
									</tr>
									<tr >
										<td width="200"><span class="">固话缴费单:</span></td>
										<td>
											<?php echo ($vip_rs['ghd']!='') ? '<a href="'.$vip_rs['ghd'].'" target="_blank" title="点击查看原图"><img src="'.$vip_rs['ghd'].'" width="250px" /></a><input name="ghd" type="hidden" value="'.$vip_rs['ghd'].'"/>' : '(无)'; ?>
											<input id="ghd" type="file" name="attach[ghd]">
										</td>
									</tr>
									<tr >
										<td width="200"><span class="">上传手持身份证的照片:</span></td>
										<td>
											<?php echo ($vip_rs['scsfz']!='') ? '<a href="'.$vip_rs['scsfz'].'" target="_blank" title="点击查看原图"><img src="'.$vip_rs['scsfz'].'" width="250px" /></a><input name="scsfz" type="hidden" value="'.$vip_rs['scsfz'].'"/>' : '(无)'; ?>
											<input id="scsfz" type="file" name="attach[scsfz]">
										</td>
									</tr>
									<tr>
										<td width="200"><span class="">营销员1年以上会员担保认证帖子地址:</span></td>
										<td>
											<?php echo ($vip_rs['thread_url']!='') ? '<a href="'.h_d($vip_rs['thread_url']).'" target="_blank" title="点击查看帖子">'.h_d($vip_rs['thread_url']).'</a>' : '(无)'; ?><br />
											<input type="text" name="thread_url" value="<?php echo h_d($vip_rs['thread_url']); ?>" style="width:300px"/>
										</td>
									</tr>
									<?php if( $vip_rs['created'] < 1373440000 ){ ?>
									<tr height="30px"><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
									<tr >
										<td width="200"><span class="">汇款凭证:</span></td>
										<td>
											<?php echo ($vip_rs['hkpz']!='') ? '<a href="'.$vip_rs['hkpz'].'" target="_blank" title="点击查看原图"><img src="'.$vip_rs['hkpz'].'" width="250px" /></a>' : '(无)'; ?>
											<input id="hkpz" type="file" name="attach[hkpz]">
										</td>
									</tr>
									<tr >
										<td width="200"><span class="">其它认证图片:</span></td>
										<td>
											<?php echo ($vip_rs['qtrz']!='') ? '<a href="'.$vip_rs['qtrz'].'" target="_blank" title="点击查看原图"><img src="'.$vip_rs['qtrz'].'" width="250px" /></a>' : '(无)'; ?>
											<input id="qtrz" type="file" name="attach[qtrz]">
										</td>
									</tr>
									<?php } ?>
									<tr>
										<td width="200">当前状态:</td>
										<td>
											<span style="color: red">
												<?php if($vip_rs['status']==2){echo '已认证';}elseif($vip_rs['status']==3){echo '已拒绝';}else{echo '待审核';} ?>
											</span>
											&nbsp;&nbsp;(该会员想申请成为交易会员)
											<?php if($vip_rs['is_before']==2){echo '<span style="color:red;font-weight:bold;">&nbsp;&nbsp;预审</span>';} ?>
										</td>
									</tr>
									<tr height="120">
										<td width="200">交易会员组:</td>
										<td>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==57 ? 'checked="checked"' : ''; ?> value="57">纯买家
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==45 ? 'checked="checked"' : ''; ?> value="45">营销员1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==46 ? 'checked="checked"' : ''; ?> value="46">营销员2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==47 ? 'checked="checked"' : ''; ?> value="47">营销员3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==48 ? 'checked="checked"' : ''; ?> value="48">营销主管1年&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==49 ? 'checked="checked"' : ''; ?> value="49">营销主管2年&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==50 ? 'checked="checked"' : ''; ?> value="50">营销主管3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==51 ? 'checked="checked"' : ''; ?> value="51">总经理1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==52 ? 'checked="checked"' : ''; ?> value="52">总经理2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==53 ? 'checked="checked"' : ''; ?> value="53">总经理3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==54 ? 'checked="checked"' : ''; ?> value="54">董事长1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==55 ? 'checked="checked"' : ''; ?> value="55">董事长2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==56 ? 'checked="checked"' : ''; ?> value="56">董事长3年
										</td>
									</tr>
									<tr>
										<td width="200">交易会员组有效期:</td>
										<td>
											<input id="valid_date" name="valid_date" value="<?php echo $valid_date; ?>" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})">&nbsp;(默认一年) 
										</td>
									</tr>
									<tr>
										<td width="200">嘉宾、管理会员组:</td>
										<td>
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(43,$extgroupids) ? 'checked="checked"' : ''; ?> value="43" />特邀嘉宾&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(44,$extgroupids) ? 'checked="checked"' : ''; ?> value="44" />讨论组会员&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(58,$extgroupids) ? 'checked="checked"' : ''; ?> value="58" />栏目巡视员&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(59,$extgroupids) ? 'checked="checked"' : ''; ?> value="59" />鉴定员
										</td>
									</tr>
									<tr>
										<td width="200">管理员注:</td>
										<td><textarea cols="36" rows="8" name="remark"><?php echo h_d($vip_rs['remark']); ?></textarea>(该内容会在签名档显示)</td>
									</tr>
									<tr>
										<td style="text-align:center;" colSpan="2">
											<input class="submit_style"onclick="javascript:is_yes_no(2);" value="<?php if($vip_rs['status']==2){echo '保存';}else{echo '通过';} ?>" type="submit">
											<input class="submit_style" onclick="javascript:is_yes_no(3);" value="<?php if($vip_rs['status']==3){echo '保存';}else{echo '拒绝';} ?>" type="submit"> 
											<input class="submit_style" name="submit_reset" value="重置" type="reset"> 
										</td>
									</tr>									
								</tbody>
							</table>
						</form>
					</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
function is_yes_no(id){
	document.form1.status.value=id;
}
function checkdata(){
	if(document.form1.name.value.length==0){
		alert("姓名不能为空");
		document.form1.name.focus();
		return false;
	}
	if(document.form1.postcode.value.length!=6){
		alert("请输入正确的邮政编码");
		document.form1.postcode.focus();
		return false;
	}
	if(document.form1.mailaddress.value.length==0){
		alert("通信地址不能为空");
		document.form1.mailaddress.focus();
		return false;
	}
	if(document.form1.mobile.value.length<=0){
		alert("手机不能为空");
		document.form1.mobile.focus();
		return false;
	}
	if(document.form1.cardnumber.value.length<6){
		alert("请输入正确的身份证号码");
		document.form1.cardnumber.focus();
		return false;
	}
	if(document.form1.bankaccounttype.value==""){
		alert("请选择常用银行类型");
		document.form1.bankaccounttype.focus();
		return false;
	}
	if(document.form1.bankaccount.value.length<=10){
		alert("请输入正确的常用银行帐号");
		document.form1.bankaccount.focus();
		return false;
	}
    return true;
}
</script>
</body>
</html>